#define _CRT_SECURE_NO_WARNINGS 

#include <iostream>

using namespace std;

int main()
{
	int* pArr = new int[10] {3, 5, 1, 11, 99, 66, 22, 2, 8, 6};
	
	for (int i = 0; i < 9; i++)
	{
		for (int j = i + 1; j < 10; j++)
		{
			if (pArr[i] < pArr[j])
			{
				int n;
				n = pArr[i];
				pArr[i] = pArr[j];
				pArr[j] = n;
			}
		}
	}

	for (int i = 0; i < 10; i++)
	{
		cout << pArr[i] << endl;
	}

	return 0;
}

